import { madokaPost, type ResultType } from "@/utils/request.ts";

export default {
  /**
   * 登录接口
   * @param data
   */
  login: (data: {
    username: string;
    password: string;
  }): ResultType<{
    token: string;
    ttl: number;
  }> => madokaPost({ url: "/login", data: { account: data.username, password: data.password },  }),
};
